package com.sctvcloud.dongqu.ui.activities;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.sctvcloud.dongqu.R;
import com.sctvcloud.dongqu.base.BaseActivity;
import com.sctvcloud.dongqu.ui.utils.TitleUtils;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 用户协议与隐私政策
 */
public class MyRuleAndPolicyActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        new TitleUtils(this).useAndSetTxTitle(getResources().getString(R.string.user_agreement_and_policy));
    }

    @Override
    protected void initInject() {
        setContentView(R.layout.activity_my_rule_policy);
        ButterKnife.bind(this);
    }



    @OnClick({R.id.mine_user_agreement,R.id.mine_privacy_policy})
    protected void OnClick(View view) {
        if (view.getId() == R.id.mine_user_agreement) {
            Intent intent = new Intent(this, UserAgreementActivity.class);
            intent.putExtra(UserAgreementActivity.RULE_TYPE,0);
            startActivity(intent);
        }else if (view.getId() == R.id.mine_privacy_policy) {
            Intent intent = new Intent(this, UserAgreementActivity.class);
            intent.putExtra(UserAgreementActivity.RULE_TYPE,1);
            startActivity(intent);
        }
    }
}
